// var
@import '_variables/*';
// mixin
@import '_mixins/*';
// global
@import '_global';
@import '_layout/*';
// component
@import '_components/*';
@import '_components/*/*';
// widget
@import '_widget';
// helper
@import '_helper';

if (hexo-config('mode') == 'dark') {
  :root {
    dark();
    --color-mode: 'dark';
  }

  @import '_global/dark';
} else if (hexo-config('mode') == 'auto' || hexo-config('mode') == 'time') {
  @media (prefers-color-scheme: dark) {
    :root {
      --color-mode: 'dark';
    }

    :root:not([data-user-color-scheme]) {
      dark();

      @import '_global/dark';
    }
  }

  [data-user-color-scheme='dark'] {
    dark();

    @import '_global/dark';
  }
}

// extend page
@import '_extend/tags';

if (hexo-config('albums.enable')) {
  @import '_extend/albums';
}

if (hexo-config('girls.enable')) {
  @import '_extend/girls';
}

// custom style
if (hexo-config('custom.style')) {
  @import '../../../' + hexo-config('custom.style');
}
